<template>
  <div class="page">
    <van-nav-bar left-arrow @click-left="onClickBack" class="my-nav-bar" />
    <div style="padding: 0 15px 15px;">
      <van-image :src="require('@/assets/images/meetingManage/title.png')" alt="" width="180px"
        style="margin-top:-2px" />
      <div class="list">
        <div class="list-item" v-for="item in list" :key="item.id" :style="{ backgroundColor: item.backgroundColor }"
          @click="handleGoPage(item.path)">
          <div>
            <div class="list-item-title">{{ item.title }}</div>
            <div class="list-item-title2">{{ item.title2 }}</div>
          </div>
          <van-image :src="item.icon" alt="" width="80px" style="display: block;" />
        </div>
      </div>
    </div>
  </div>
</template>
<script> 
import Vue from "vue";
import {Image} from "vant";
Vue.use(Image);
export default {
  name: "meetingManage",
  data() {
    return {
      list: [
        {
          title: "会议设置",
          title2: "MEETING ROOM SETUP",
          id: 1,
          icon: require("@/assets/images/meetingManage/meetingSet.png"),
          path:"/meetingSet",
          backgroundColor: "#DCEBFD"
        },
        {
          title: "权限设置",
          title2: "PERMISSION SETTINGS",
          id: 2,
          icon: require("@/assets/images/meetingManage/authSet.png"),
          // path: "/authSet",
          backgroundColor: "#E7E8FC"
        },
        {
          title: "标签设置",
          title2: "LABEL SETTINGS",
          id: 3,
          icon: require("@/assets/images/meetingManage/labelSet.png"),
          path: "/labelSet",
          backgroundColor: "#FFEADB"
        }
      ],
    }
  },
  methods: {
    onClickBack() {
      this.$router.push('/');
    },
    handleGoPage(path){
      path&&this.$router.push(path)
    }
  }
}
</script>
<style scoped lang="less">
.page {
  background: linear-gradient(to right top , #FFFFFF ,#E5F2FF);
  .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    .list-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      width: 100%;
      padding: 15px 20px 8px;
      border-radius: 10px;
      font-family: PingFangSC, PingFang SC;
      box-sizing: border-box;
  
      .list-item-title {
          color: #0B0B0B;
          font-size: 34rpx;
          font-weight: 500;
          font-style: normal;
          line-height: 48rpx;
        }
  
        .list-item-title2 {
          font-weight: 400;
          font-size: 12px;
          color: #787878;
          line-height: 33rpx;
          font-style: normal;
          text-transform: uppercase;
        }
    }
  }
  
}

</style>